<script setup lang="js">
import {ref} from 'vue'
import DataEMap  from "../../components/elderlyData/dataE-map.vue";
// import DataEMap from "../../components/datav-map.vue"
import Drawer   from "../../components/elderlyData/drawer.vue";

//类别
const category = "E"
const userId =ref()
const flag = ref(false)
const getParameter = async (newUserId,newFlag) => {
  userId.value = newUserId;
  flag.value = newFlag;
}

</script>

<template>
  <el-card>
    <data-e-map :category="category" @sendMessage="getParameter"></data-e-map>
    <Drawer :user-id="userId" v-model:flag="flag"></Drawer>

  </el-card>

</template>

<style scoped lang="less">

</style>